Skip to content

Conversation

FreyLuis
Copy link
Contributor

This PR adds detection for Visual Studio Preview, as described in #1519.

@FreyLuis
Copy link
Contributor Author

The vswhere binary is installed with the Visual Studio Installer.

Alternatively, we could ship with the vswhere binary with the following:

  <!-- Testing for windows as target platform. fallback to true when no identifier is set so a nuget restore still works -->
  <ItemGroup Condition="'$(RuntimeIdentifier)' == '' OR $([MSBuild]::StartsWith('$(RuntimeIdentifier)', 'win'))">
    <PackageReference Include="vswhere" Version="3.1.7" GeneratePathProperty="True" PrivateAssets="all" />
    <Content Include="$(PkgVswhere)\tools\vswhere.exe" Visible="False" Link="vswhere.exe" CopyToOutputDirectory="PreserveNewest" />
  </ItemGroup>

But this seems to work fine.

love-linger added a commit that referenced this pull request Jul 11, 2025
@love-linger
Copy link
Collaborator

I've pushed my implementation of this PR that based on your idea.

@FreyLuis FreyLuis deleted the develop branch July 12, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants